#pragma once

#include <Blobz.h>
#include <BlobzGui.h>
#include "TutPDF.h"

namespace Tutorial4
{
	class TutorApp4 : public Blobz::BaseApplication, Blobz::GUIListener
	{
	public:
		TutorApp4();
		~TutorApp4();

	public:
		virtual bool onInitialize();
		virtual void onDeinitialize();

		virtual void onReload();

		virtual void onUpdate(float inFrameTime);
		virtual void onDraw();

		virtual void onFingerDown(const  TouchListener::TouchData& inData);
		virtual void onFingerUp(const  TouchListener::TouchData& inData);
		virtual void onFingerUpdate(const  TouchListener::TouchData& inData);
		virtual void onFingerExit(const  TouchListener::TouchData& inData);
		virtual void onGUIEvent(Blobz::GUIBase* inpComponent, Blobz::GUIEvent inGUIEvent, Blobz::FingerEvent inFingerEvent);

	private:
		Blobz::Texture mBackgroundTexture;
		Blobz::GUIManager mMenuManager;
		Blobz::Button* mpPreviousButton;
		Blobz::Button* mpRefreshButton;
		Blobz::Button* mpNextButton;

		TutPDF mPDF;
	};
}
